class CampOrder < ApplicationRecord
  has_one :appointment, class_name: "CampAppointment"
  belongs_to :member
  belongs_to :company
  belongs_to :store
  has_one :running_account, class_name: "Transaction", foreign_key: :order_no, primary_key: :order_no
  enum status: {deleted: -2, canceled: -1, pending: 0, paid: 1, refunded: 2}
  enum source: {wx: '微信', app: '应用'}
end
